package com.me.jingdongshop.presenter;

import com.me.common.base.BaseView;
import com.me.jingdongshop.model.bean.LocationList;

import java.util.List;

/**
 * Created by YL on 2017/5/9.
 */

public class GoodsDetailPresenter extends BasePresenter {
    public GoodsDetailPresenter(BaseView baseView) {
        super(baseView);
    }

    public LocationList.AddressListBean getDefaultAddress(List<LocationList.AddressListBean> addressList) {
        for (LocationList.AddressListBean bean :
                addressList) {
            if (bean.getIsDefault() == 1) {
//                return bean.getProvince() + bean.getCity() + bean.getAddressArea() + bean.getAddressDetail();
                return bean;
            }
        }
        return null;
    }
}
